package com.ronghui.cash.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 还款缓存表
 * </p>
 *
 * @author wiki
 * @since 2017-12-06
 */
@TableName("return_money_cache")
public class ReturnMoneyCache extends Model<ReturnMoneyCache> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 还款单号
     */
	@TableField("return_money_id")
	private String returnMoneyId;
    /**
     * 还款金额
     */
	private Double money;
    /**
     * 用户ID
     */
	@TableField("user_id")
	private Long userId;
    /**
     * 分期ID列表
     */
	@TableField("order_fenqis")
	private String orderFenqis;
    /**
     * 支付方式：1 手动，2自动，3线下，4微信还款，5支付宝还款
     */
	@TableField("pay_type")
	private Integer payType;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private String createTime;
    /**
     * 状态：0、生成还款订单 1、已还款
     */
	private Integer status;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getReturnMoneyId() {
		return returnMoneyId;
	}

	public void setReturnMoneyId(String returnMoneyId) {
		this.returnMoneyId = returnMoneyId;
	}

	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getOrderFenqis() {
		return orderFenqis;
	}

	public void setOrderFenqis(String orderFenqis) {
		this.orderFenqis = orderFenqis;
	}

	public Integer getPayType() {
		return payType;
	}

	public void setPayType(Integer payType) {
		this.payType = payType;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
